﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="POApproval.aspx.cs" Inherits="WebPortal.Processes.POProcess.POApproval" %>

<%@ Register Src="../../Processes/ProcessControl/ButtonList.ascx" TagName="buttonlist"
    TagPrefix="btn" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory.ascx" TagName="approvalhistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments.ascx" TagName="attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/UserInfo.ascx" TagName="userinfo"
    TagPrefix="ui" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Purchasing Order采购单</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="container">
            <div class="row">
                <ui:userinfo id="UserInfo1" processtitle="Purchasing Order<br/>采购单" processprefix="PO"
                    tablename="PROC_PO" tablenamedetail="PROC_PO_DT" runat="server" readonly="true">
            </ui:userinfo>
            </div>
            <div class="row">
                <table class="table table-condensed table-bordered">
                    <tr>
                        <td class="banner" colspan="6">
                            Application Details / 详细信息
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            Purchasing Requisition Number/PR单号<span class="red">*</span>
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_PONO" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td class="td-label">
                            Item Number/项目号<span class="red">*</span>
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_PROJECTNUMBER" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            Supplier Number/供应商编号<span class="red">*</span>
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_SUPPLIERNUMBER" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td class="td-label">
                            Supplier Name/供应商名称<span class="red">*</span>
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_SUPPLIERNAME" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            Supplier Phone/供应商电话<span class="red">*</span>
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_SUPPLIERPHONE" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td class="td-label">
                            Contact/联系人<span class="red">*</span>
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_CONTACT" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            Payment Term/付款方式<span class="red">*</span>
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_PAYMENT" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td class="td-label">
                            Payment Term Name/<br />
                            付款方式名称<span class="red">*</span>
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_OTHERPAYMENT" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            Supplier E-Mial/供应商电子邮件
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_SUPPLIEREMAIL" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td class="td-label">
                            Currency/币种
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_CURRENCY" runat="server">  </asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            Tax Category/税别
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_TAXCATEGORY" runat="server">  </asp:Label>
                        </td>
                        <td class="td-label">
                            Taxable/应纳税
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_TAXABLE" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <div>
                <tr>
                    <td colspan="6">
                        <table class="table table-condensed table-bordered tablerequired" id="tbDetail">
                            <tr>
                                <th>
                                    No<br />
                                    序号
                                </th>
                                <th>
                                    Paart No.<br />
                                    品号
                                </th>
                                <th>
                                    Part Name<br />
                                    <span class="red">*</span> 品名
                                </th>
                                <th>
                                    Material Type<br />
                                    物料类型
                                </th>
                                <th>
                                    Cost Category<br />
                                    成本类别
                                </th>
                                <th>
                                    Brand & Model<br />
                                    品牌&型号
                                </th>
                                <th style="width: 95px; display: none">
                                    Deadline Date<br />
                                    截止日期
                                </th>
                                <th>
                                    Tax<br />
                                    税别
                                </th>
                                <th>
                                    Taxable<br />
                                    应纳税
                                </th>
                                <th>
                                    <%--Shortfall<br />--%>
                                    Quantity<br />
                                    数量
                                </th>
                                <th>
                                    UM<br />
                                    单位
                                </th>
                                <th>
                                    Unit Price<br />
                                    单价
                                </th>
                                <th>
                                    Total Cost<br />
                                    小计
                                </th>
                            </tr>
                            <asp:Repeater ID="read_detail_PROC_PO_DT" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <asp:Label ID="read_IDNO" Text='<%#Eval("ID") %>' runat="server" Width="80%"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_PARTNO" Text='<%#Eval("PARTNO") %>' runat="server" Width="80%"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_FORMID" Text='<%#Eval("FORMID") %>' runat="server" Style="display: none"></asp:Label>
                                            <asp:Label ID="read_MATERIALNAME" Text='<%#Eval("MATERIALNAME") %>' runat="server"  Width="80%"></asp:Label>
                                        </td>
                                        <%--<td>
                                            <asp:Label ID="read_SPEC" Text='<%#Eval("SPEC") %>' runat="server" Width="90%" CssClass=""></asp:Label>
                                        </td>--%>
                                        <td>
                                            <asp:Label ID="read_MATERIALTYPE" Text='<%#Eval("MATERIALTYPE") %>' runat="server"
                                                Width="90%" CssClass=""></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_COSTCATEGORY" Text='<%#Eval("COSTCATEGORY") %>' runat="server"
                                                Width="90%" CssClass=""></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_BRANDMODEL" Text='<%#Eval("BRANDMODEL") %>' runat="server" Width="90%"
                                                CssClass=""></asp:Label>
                                        </td>
                                        <%--<td>
                                            <asp:Label ID="read_DEADLINEDATE" Text='<%# ProcessControl.Format.GetDate(Eval("DEADLINEDATE")) %>'
                                                runat="server" Width="90%"></asp:Label>
                                        </td>--%>
                                        <td>
                                            <asp:Label ID="rea_TAXCATEGORY" Text='<%#Eval("TAXCATEGORY") %>' runat="server" Width="90%"
                                                CssClass=""></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_TAXABLE" Text='<%#Eval("TAXABLE") %>' runat="server" Width="90%"
                                                CssClass=""></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_SHORTFALL" Text='<%#Eval("SHORTFALL") %>' runat="server" Width="90%"
                                                CssClass=""></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_METER" Text='<%#Eval("METER") %>' runat="server" Width="90%"
                                                CssClass=""></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_UNITCOST" Text='<%#Eval("UNITCOST") %>' runat="server" Width="90%"
                                                CssClass=""></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="read_TOTALCOST" Text='<%#Eval("TOTALCOST") %>' runat="server" Width="90%"
                                                CssClass=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td style="background-color: #f5f5f5">
                                            主科目
                                        </td>
                                        <td colspan="2">
                                            <asp:Label ID="read_MAINSUBJECT" Text='<%#Eval("MAINSUBJECT") %>' runat="server"
                                                Width="87%" />
                                        </td>
                                        <td style="background-color: #f5f5f5">
                                            子科目
                                        </td>
                                        <td colspan="2">
                                            <asp:Label ID="read_SUBACCOUNT" Text='<%#Eval("SUBACCOUNT") %>' runat="server" Width="90%" />
                                        </td>
                                        <td style="background-color: #f5f5f5">
                                            成本中心
                                        </td>
                                        <td>
                                            <asp:Label ID="read_COSTCENTER" Text='<%#Eval("COSTCENTER") %>' runat="server" Width="90%" />
                                        </td>
                                        <td style="background-color: #f5f5f5">
                                            项目号
                                        </td>
                                        <td colspan="3">
                                            <asp:Label ID="read_ITEMNUMBER" Text='<%#Eval("ITEMNUMBER") %>' runat="server" Width="90%" />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                </tr>
            </div>
            <div align="center" style="text-align: left">
                <attach:attachments id="Attachments1" runat="server" readonly="true">
            </attach:attachments>
            </div>
            <div align="center" style="text-align: left">
                <ah:approvalhistory id="ApprovalHistory1" runat="server">
            </ah:approvalhistory>
            </div>
            <div align="center" style="text-align: left">
                <btn:buttonlist id="ButtonList1" runat="server">
            </btn:buttonlist>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
